Skip to content

Commit

Permalink
Change context timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Miaha Cybersec <[email protected]>
  • Loading branch information
Miaha Cybersec authored and Miaha Cybersec committed Jul 2, 2024
1 parent df5e454 commit 4866ea1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/buildkit/buildkit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,10 @@ func TestNewClient(t *testing.T) {
t.Run("default buildkit addr", func(t *testing.T) {
t.Parallel()
bkOpts := Opts{} // Initialize with default values
ctxT, cancel := context.WithTimeout(ctx, time.Second)
defer cancel()
client, err := NewClient(ctxT, bkOpts)
client, err := NewClient(context.Background(), bkOpts)
assert.NoError(t, err)
defer client.Close()
err = ValidateClient(ctxT, client)
err = ValidateClient(context.Background(), client)
assert.NoError(t, err)
})
})
Expand Down

0 comments on commit 4866ea1

Please sign in to comment.