(t *testing.T)
| 134 | } |
| 135 | |
| 136 | func TestPath(t *testing.T) { |
| 137 | l := New("/tmp/test.lock") |
| 138 | if l.Path() != "/tmp/test.lock" { |
| 139 | t.Errorf("Path() = %q, want /tmp/test.lock", l.Path()) |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | func TestForSubscribe(t *testing.T) { |
| 144 | dir := t.TempDir() |