Skip to content

Commit

Permalink
tests/e2e: Remove empty errors checks
Browse files Browse the repository at this point in the history
`AssessPodTestCommands` is not currently set up to handle checking for empty TestErrorFn,
instead if there is error when not expected it will error, which does the same thing,
so we should remove the isEmpty checks

Signed-off-by: stevenhorsman <[email protected]>
  • Loading branch information
stevenhorsman committed Jul 8, 2024
1 parent 0ffe409 commit 9c523de
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/cloud-api-adaptor/test/e2e/common_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ func DoTestCreatePodWithConfigMap(t *testing.T, e env.Environment, assert CloudA
}
},
TestCommandStderrFn: IsBufferEmpty,
TestErrorFn: IsErrorEmpty,
},
}

Expand Down Expand Up @@ -100,7 +99,6 @@ func DoTestCreatePodWithSecret(t *testing.T, e env.Environment, assert CloudAsse
}
},
TestCommandStderrFn: IsBufferEmpty,
TestErrorFn: IsErrorEmpty,
},
{
Command: []string{"cat", passwordPath},
Expand All @@ -115,7 +113,6 @@ func DoTestCreatePodWithSecret(t *testing.T, e env.Environment, assert CloudAsse
}
},
TestCommandStderrFn: IsBufferEmpty,
TestErrorFn: IsErrorEmpty,
},
}

Expand All @@ -138,7 +135,6 @@ func DoTestCreatePeerPodContainerWithExternalIPAccess(t *testing.T, e env.Enviro
}
},
TestCommandStderrFn: IsBufferEmpty,
TestErrorFn: IsErrorEmpty,
},
}

Expand Down Expand Up @@ -226,7 +222,6 @@ func DoTestCreatePeerPodWithPVCAndCSIWrapper(t *testing.T, e env.Environment, as
}
},
TestCommandStderrFn: IsBufferEmpty,
TestErrorFn: IsErrorEmpty,
},
}
NewTestCase(t, e, "PeerPodWithPVCAndCSIWrapper", assert, "PVC is created and mounted as expected").WithPod(pod).WithPVC(myPVC).WithTestCommands(testCommands).Run()
Expand Down

0 comments on commit 9c523de

Please sign in to comment.