Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestReadWaitsForLock (1.05 sec)

  1. src/cmd/go/internal/lockedfile/lockedfile_test.go

    			t.Errorf("mu2.Lock: %v", err)
    			return
    		}
    		t.Logf("unlock2, _ := mu2.Lock()")
    		t.Logf("unlock2()")
    		unlock2()
    	})
    
    	t.Logf("unlock()")
    	unlock()
    	wait(t)
    }
    
    func TestReadWaitsForLock(t *testing.T) {
    	t.Parallel()
    
    	dir, remove := mustTempDir(t)
    	defer remove()
    
    	path := filepath.Join(dir, "timestamp.txt")
    
    	f, err := lockedfile.Create(path)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top