Skip to content

Commit

Permalink
wip: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kainpets committed Jul 5, 2024
1 parent fa5ebb2 commit abb6ea5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/integration/access_codes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func TestAccessCodes(t *testing.T) {
},
)
require.NoError(t, err)
assert.NotNil(t, deleteResponse.ActionAttempt.Success)
assert.NotNil(t, deleteResponse.ActionAttempt.ActionAttemptActionAttemptId.Result)

deviceIds := make([]string, 0, len(accessCodes))
for _, accessCode := range accessCodes {
Expand Down
9 changes: 5 additions & 4 deletions test/integration/devices_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ func TestDevices(t *testing.T) {
ctx := context.Background()
device := getTestDevice(t, seam)
assert.NotNil(t, device.Properties)
assert.Nil(t, device.Properties.AugustMetadata)
// AugustMetadata is no longer available for some reason
// assert.Nil(t, device.Properties.AugustMetadata)

devices, err := seam.Devices.List(
ctx,
Expand Down Expand Up @@ -71,12 +72,12 @@ func TestDevices(t *testing.T) {
deviceWithName, err := seam.Devices.Get(
ctx,
&seamgo.DevicesGetRequest{
Name: &device.Properties.Name,
Name: &device.DisplayName,
DeviceId: &device.DeviceId,
},
)
require.NoError(t, err)
assert.Equal(t, device.Properties.Name, deviceWithName.Properties.Name)
assert.Equal(t, device.DisplayName, deviceWithName.DisplayName)

locks, err := seam.Locks.List(
ctx,
Expand All @@ -100,4 +101,4 @@ func getTestDevice(t *testing.T, seam *seamclient.Client) *seamgo.Device {
require.NoError(t, err)
require.GreaterOrEqual(t, len(devices), 1)
return devices[0]
}
}

0 comments on commit abb6ea5

Please sign in to comment.