Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPodsAppearsWithNilNetnsWhenEnsureIsUsed (0.18 sec)

  1. cni/pkg/nodeagent/pod_cache_test.go

    	}
    
    	if counter.Load() != 2 {
    		t.Fatalf("Expected openNetns to be called twice, got %d", counter.Load())
    	}
    }
    
    func TestPodsAppearsWithNilNetnsWhenEnsureIsUsed(t *testing.T) {
    	p := newPodNetnsCache(openNsTestOverride)
    
    	p.Ensure("123")
    
    	found := false
    	snap := p.ReadCurrentPodSnapshot()
    	for k, v := range snap {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Aug 14 19:36:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top