ShortURL: Fix wrong creation timestamp conversion (#113646)

This commit is contained in:
Ezequiel Victorero
2025-11-10 09:14:51 -03:00
committed by GitHub
parent 8ce9098765
commit 32db7e176d
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -211,6 +211,7 @@ func doDualWriteTests(t *testing.T, helper *apis.K8sTestHelper, mode grafanarest
found, err := client.Resource.Get(context.Background(), uid, metav1.GetOptions{})
require.NoError(t, err)
assert.Equal(t, uid, found.GetName())
assert.LessOrEqual(t, time.Since(found.GetCreationTimestamp().Time).Seconds(), 30.0, "creation timestamp should be within last 30 seconds")
// Verify cross-API consistency
getFromBothAPIs(t, helper, client, uid)