Skip to content

Commit 91deba8

Browse files
committed
Fix unit test failures
1 parent 1beec17 commit 91deba8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/cloud/helpers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var _ = Describe("Helpers", func() {
4545
client, err := cloud.NewClient(filepath)
4646

4747
Ω(client).Should(BeNil())
48-
Ω(err.Error()).Should(ContainSubstring("Section Global not found"))
48+
Ω(err.Error()).Should(ContainSubstring("section Global not found"))
4949
})
5050
})
5151

pkg/cloud/instance_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ var _ = Describe("Instance", func() {
8282
It("Handles finding more than one VM instance by ID", func() {
8383
vms.EXPECT().GetVirtualMachinesMetricByID(*csMachine.Spec.InstanceID).Return(nil, 2, nil)
8484
Ω(client.ResolveVMInstanceDetails(csMachine)).
85-
Should(MatchError("Found more than one VM Instance with ID instance-id."))
85+
Should(MatchError("found more than one VM Instance with ID instance-id"))
8686
})
8787

8888
It("sets csMachine spec and status values when VM instance found by ID", func() {
@@ -105,7 +105,7 @@ var _ = Describe("Instance", func() {
105105
vms.EXPECT().GetVirtualMachinesMetricByName(csMachine.Name).Return(nil, 2, nil)
106106

107107
Ω(client.ResolveVMInstanceDetails(csMachine)).Should(
108-
MatchError("Found more than one VM Instance with name instance-name."))
108+
MatchError("found more than one VM Instance with name instance-name"))
109109
})
110110

111111
It("sets csMachine spec and status values when VM instance found by Name", func() {

0 commit comments

Comments
 (0)