Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit d95bfbe

Browse files
authored
Edited test case
Added test for empty remoteVersionInfo Signed-off-by: mudit singh <[email protected]>
1 parent 526739d commit d95bfbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/cli/version_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ func TestOutputPrettyVersionInfo(t *testing.T) {
216216
},
217217
{
218218
name: "mesh versions with no remote version info",
219-
remoteVersionInfoList: nil,
220-
expected: "No meshes in the cluster\n",
219+
remoteVersionInfoList: []*remoteVersionInfo{},
220+
expected: "Unable to find OSM control plane in the cluster\n",
221221
},
222222
}
223223

0 commit comments

Comments
 (0)