Skip to content

Commit

Permalink
Reduce context timeout to 1s for faster tests
Browse files Browse the repository at this point in the history
Signed-off-by: James Munnelly <[email protected]>
  • Loading branch information
munnerz committed Mar 29, 2022
1 parent 556e0be commit f3a7f8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/integration/ready_to_request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,12 @@ func TestFailsIfNotReadyToRequest_ContinueOnNotReadyDisabled(t *testing.T) {
stopCh := make(chan struct{})
go testutil.IssueAllRequests(t, opts.Client, "certificaterequest-namespace", stopCh, []byte("certificate bytes"), []byte("ca bytes"))
defer close(stopCh)

tmpDir, err := os.MkdirTemp("", "*")
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(tmpDir)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
defer cancel()
_, err = cl.NodePublishVolume(ctx, &csi.NodePublishVolumeRequest{
VolumeId: "test-vol",
Expand Down

0 comments on commit f3a7f8a

Please sign in to comment.