Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewSourceFile (0.13 sec)

  1. pkg/kubelet/config/file_linux_test.go

    )
    
    func TestExtractFromNonExistentFile(t *testing.T) {
    	ch := make(chan interface{}, 1)
    	lw := newSourceFile("/some/fake/file", "localhost", time.Millisecond, ch)
    	err := lw.doWatch()
    	if err == nil {
    		t.Errorf("Expected error")
    	}
    }
    
    func TestUpdateOnNonExistentFile(t *testing.T) {
    	ch := make(chan interface{})
    	NewSourceFile("random_non_existent_path", "localhost", time.Millisecond, ch)
    	select {
    	case got := <-ch:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 14 09:38:23 UTC 2022
    - 12.3K bytes
    - Viewed (0)
Back to top