Skip to content

Commit 779f5e7

Browse files
committed
fix(updater): use time.Equal for timezone-agnostic comparison in integration test
1 parent 12068a6 commit 779f5e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/integration/updater_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func TestIntegration_Updater_SaveAndLoadState_RoundTrip(t *testing.T) {
6161
require.NoError(t, err)
6262
assert.Equal(t, snap.LatestVersion, loaded.LatestVersion)
6363
assert.Equal(t, snap.UpdateAvailable, loaded.UpdateAvailable)
64-
assert.Equal(t, snap.LastCheck, loaded.LastCheck.Truncate(time.Second))
64+
assert.True(t, snap.LastCheck.Equal(loaded.LastCheck.Truncate(time.Second)), "expected %v, got %v", snap.LastCheck, loaded.LastCheck)
6565
}
6666

6767
func TestIntegration_Updater_LoadState_FileNotFound(t *testing.T) {

0 commit comments

Comments
 (0)