Skip to content

Commit

Permalink
fix(api): flaky api tests (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanHoladay authored Sep 19, 2024
1 parent def3b83 commit 1ef0a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/test/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func processResponseBody(body string) []byte {
func testRoutesHelper(t *testing.T, tt TestRoute, uidMap map[string]string, r *chi.Mux) {
t.Run(tt.name, func(t *testing.T) {
// Create a new context with a timeout
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
defer cancel()

rr := httptest.NewRecorder()
Expand Down

0 comments on commit 1ef0a77

Please sign in to comment.