mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
add test: verify kubelet.config.Restore only happen once
This commit is contained in:
parent
65a819338a
commit
bf48d39f39
@ -451,4 +451,10 @@ func TestPodRestore(t *testing.T) {
|
||||
t.Fatalf("Restore returned error: %v", err)
|
||||
}
|
||||
expectPodUpdate(t, ch, CreatePodUpdate(kubetypes.RESTORE, kubetypes.ApiserverSource, pod))
|
||||
|
||||
// Verify Restore only happen once
|
||||
if err := config.Restore(tmpDir, channel); err != nil {
|
||||
t.Fatalf("The second restore returned error: %v", err)
|
||||
}
|
||||
expectNoPodUpdate(t, ch)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user