use prior and current worker auth keys (#2495)
* use prior and current worker auth keys
This commit is contained in:
1 parent
902ca3cccb
commit
4493dfd527
12 files changed
+392
-71
No files matched your search
@@ -415,6 +415,9 @@ func TestWorkerAuthStore(t *testing.T) {
|
||||
assert.Error(err)
|
||||
} else {
|
||||
assert.NoError(err)
|
||||
// Update and create time are automatically set
|
||||
tt.expectedWorkerAuth.CreateTime = wAuth.WorkerAuth.CreateTime
|
||||
tt.expectedWorkerAuth.UpdateTime = wAuth.WorkerAuth.UpdateTime
|
||||
assert.Equal(tt.expectedWorkerAuth, wAuth.WorkerAuth)
|
||||
assert.Empty(cmp.Diff(tt.expectedWorkerAuth, wAuth, protocmp.Transform()))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user