Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TearDownAt (0.15 sec)

  1. pkg/volume/csi/csi_mounter_test.go

    	if err != nil {
    		t.Fatalf("failed to make a new Unmounter: %v", err)
    	}
    
    	csiUnmounter := unmounter.(*csiMountMgr)
    	csiUnmounter.csiClient = setupClient(t, true)
    	err = csiUnmounter.TearDownAt(dir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// ensure csi client call
    	pubs := csiUnmounter.csiClient.(*fakeCsiDriverClient).nodeClient.GetNodePublishedVolumes()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  2. pkg/volume/testing/testing.go

    }
    
    func (fv *FakeVolume) TearDown() error {
    	fv.Lock()
    	defer fv.Unlock()
    	fv.TearDownCallCount++
    	return fv.TearDownAt(fv.getPath())
    }
    
    func (fv *FakeVolume) GetTearDownCallCount() int {
    	fv.RLock()
    	defer fv.RUnlock()
    	return fv.TearDownCallCount
    }
    
    func (fv *FakeVolume) TearDownAt(dir string) error {
    	return os.RemoveAll(dir)
    }
    
    // Block volume support
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top