add substring test for invalid endpoint test
@@ -1147,7 +1147,7 @@ var _ = Describe("GCE PD CSI Driver", func() {
}
_, err = tcInvalid.Client.ListVolumes()
- Expect(err).ToNot(BeNil(), "expected error when passed invalid compute url")
+ Expect(err.Error()).To(ContainSubstring("no such host"), "expected error when passed invalid compute url")
// Create new driver and client w/ valid, passed-in endpoint
tcValid, err := testutils.GCEClientAndDriverSetup(i, "https://compute.googleapis.com/compute/v1/")
