Skip to content

Commit f3a7f8a

Browse files
committed
Reduce context timeout to 1s for faster tests
Signed-off-by: James Munnelly <[email protected]>
1 parent 556e0be commit f3a7f8a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/integration/ready_to_request_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,12 @@ func TestFailsIfNotReadyToRequest_ContinueOnNotReadyDisabled(t *testing.T) {
163163
stopCh := make(chan struct{})
164164
go testutil.IssueAllRequests(t, opts.Client, "certificaterequest-namespace", stopCh, []byte("certificate bytes"), []byte("ca bytes"))
165165
defer close(stopCh)
166-
167166
tmpDir, err := os.MkdirTemp("", "*")
168167
if err != nil {
169168
t.Fatal(err)
170169
}
171170
defer os.RemoveAll(tmpDir)
172-
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
171+
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
173172
defer cancel()
174173
_, err = cl.NodePublishVolume(ctx, &csi.NodePublishVolumeRequest{
175174
VolumeId: "test-vol",

0 commit comments

Comments
 (0)