Skip to content

Commit

Permalink
actually test if clients are the same
Browse files Browse the repository at this point in the history
  • Loading branch information
purplenicole730 committed Nov 21, 2024
1 parent a5ab0c7 commit 02b2adb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/viam_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func TestNewAppClients(t *testing.T) {
// Testing that a second call to DataClient() returns the same instance
dataClient2 := client.DataClient()
test.That(t, dataClient2, test.ShouldNotBeNil)
test.That(t, dataClient, test.ShouldResemble, dataClient2)
test.That(t, dataClient, test.ShouldEqual, dataClient2)

appClient := client.AppClient()
test.That(t, appClient, test.ShouldNotBeNil)
Expand All @@ -154,5 +154,5 @@ func TestNewAppClients(t *testing.T) {
// Testing that a second call to AppClient() returns the same instance
appClient2 := client.AppClient()
test.That(t, appClient2, test.ShouldNotBeNil)
test.That(t, appClient, test.ShouldResemble, appClient2)
test.That(t, appClient, test.ShouldEqual, appClient2)
}

0 comments on commit 02b2adb

Please sign in to comment.