From 9a9612f71e0459e352e3a46c57f5b0c10c8f8c15 Mon Sep 17 00:00:00 2001 From: hexbabe Date: Thu, 14 Nov 2024 16:35:59 -0500 Subject: [PATCH] If err, then bytes and metadata should be falsy --- robot/client/client_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/robot/client/client_test.go b/robot/client/client_test.go index 93170353bc8..6a54c4b60c4 100644 --- a/robot/client/client_test.go +++ b/robot/client/client_test.go @@ -506,9 +506,11 @@ func TestStatusClient(t *testing.T) { camera1, err := camera.FromRobot(client, "camera1") test.That(t, err, test.ShouldBeNil) - _, _, err = camera1.Image(context.Background(), rutils.MimeTypeJPEG, nil) + imgBytes, metadata, err := camera1.Image(context.Background(), rutils.MimeTypeJPEG, nil) test.That(t, err, test.ShouldNotBeNil) test.That(t, err.Error(), test.ShouldContainSubstring, "not found") + test.That(t, imgBytes, test.ShouldBeNil) + test.That(t, metadata, test.ShouldEqual, camera.ImageMetadata{}) gripper1, err := gripper.FromRobot(client, "gripper1") test.That(t, err, test.ShouldBeNil)