Skip to content

Commit

Permalink
ngx.log print log in error.log, instead of access.log
Browse files Browse the repository at this point in the history
Signed-off-by: imjoey <majunjiev@gmail.com>
  • Loading branch information
imjoey committed Jan 14, 2021
1 parent 7fe3690 commit 705318f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/test/e2e/route_with_script_luacode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (

func TestRoute_with_script_lucacode(t *testing.T) {

// clean access log
CleanAPISIXAccessLog(t)
// clean error log
CleanAPISIXErrorLog(t)

tests := []HttpTestCase{
{
Expand Down Expand Up @@ -148,9 +148,9 @@ func TestRoute_with_script_lucacode(t *testing.T) {
time.Sleep(1500 * time.Millisecond)

// verify the log generated by script set in Step-3 above
logContent := ReadAPISIXAccessLog(t)
logContent := ReadAPISIXErrorLog(t)
assert.Contains(t, logContent, "hit access phase")

// clean log
CleanAPISIXAccessLog(t)
CleanAPISIXErrorLog(t)
}

0 comments on commit 705318f

Please sign in to comment.