Skip to content

Commit

Permalink
fix: test case for auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Oct 23, 2024
1 parent 52730de commit 8efb416
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ func TestMarketoAuthService_GetAccessToken(t *testing.T) {
expectedToken: "test-token",
expectError: false,
},
{
name: "reuse existing valid token",
setupMock: func() *http.Client {
return createMockClient(nil, nil) // Should not be called
},
expectedToken: "existing-token",
expectError: false,
},
// Since we always fetch a new token, this test is not applicable
// {
// name: "reuse existing valid token",
// setupMock: func() *http.Client {
// return createMockClient(nil, nil) // Should not be called
// },
// expectedToken: "existing-token",
// expectError: false,
// },
}

for _, tt := range tests {
Expand Down

0 comments on commit 8efb416

Please sign in to comment.