Skip to content

Commit

Permalink
test: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
johzchen committed Apr 11, 2021
1 parent 6882a94 commit 389f93e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/test/e2e/route_with_plugin_jwt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package e2e

import (
"fmt"
"io/ioutil"
"net/http"
"testing"
Expand Down Expand Up @@ -100,6 +101,11 @@ func TestRoute_With_Jwt_Plugin(t *testing.T) {
assert.Equal(t, http.StatusOK, status)
jwtToken := string(body)

// sleep for process log
time.Sleep(1500 * time.Millisecond)
logContent := ReadAPISIXErrorLog(t)
fmt.Println("logContent:", logContent)

// sign jwt token with not exists key
body, status, err = httpGet("http://127.0.0.1:9080/apisix/plugin/jwt/sign?key=not-exist-key", nil)
assert.Nil(t, err)
Expand Down

0 comments on commit 389f93e

Please sign in to comment.