Skip to content

Commit

Permalink
Add description into the name of subtest (#212)
Browse files Browse the repository at this point in the history
Signed-off-by: minchao <[email protected]>
  • Loading branch information
minchao authored and aeneasr committed Jun 21, 2019
1 parent d1506dd commit 230c332
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/decision_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func TestDecisionAPI(t *testing.T) {
code: http.StatusInternalServerError,
},
} {
t.Run(fmt.Sprintf("case=%d", k), func(t *testing.T) {
t.Run(fmt.Sprintf("case=%d/description=%s", k, tc.d), func(t *testing.T) {
reg.RuleRepository().(*rule.RepositoryMemory).WithRules(tc.rules)

req, err := http.NewRequest("GET", tc.url, nil)
Expand Down
2 changes: 1 addition & 1 deletion pipeline/authn/authenticator_oauth2_introspection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func TestAuthenticatorOAuth2Introspection(t *testing.T) {
expectErr: false,
},
} {
t.Run(fmt.Sprintf("case=%d", k), func(t *testing.T) {
t.Run(fmt.Sprintf("case=%d/description=%s", k, tc.d), func(t *testing.T) {
router := httprouter.New()
if tc.setup != nil {
tc.setup(t, router)
Expand Down
2 changes: 1 addition & 1 deletion proxy/request_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func TestRequestHandler(t *testing.T) {
},
},
} {
t.Run(fmt.Sprintf("case=%d", k), func(t *testing.T) {
t.Run(fmt.Sprintf("case=%d/description=%s", k, tc.d), func(t *testing.T) {

conf := internal.NewConfigurationWithDefaults()
reg := internal.NewRegistry(conf)
Expand Down

0 comments on commit 230c332

Please sign in to comment.