depot/go/nix/nixstore/remotestore_test.go

18 lines
323 B
Go
Raw Normal View History

2022-10-09 22:48:18 +00:00
package nixstore
import "testing"
func TestRemoteStore(t *testing.T) {
d, err := OpenDaemon(DaemonSock)
if err != nil {
t.Fatalf("OpenDaemon: %v", err)
}
defer d.Close()
ni, err := d.NARInfo("/nix/store/whdqnq4nqxx8idwiv36rjnfa9rld3xfq-nix-2.3.16")
if err != nil {
t.Fatalf("NARInfo: %v", err)
}
t.Log(ni)
}