Live video on the AT Protocol

multitest: add fixture. does it work in ci??

+4 -2
+4 -2
pkg/multitest/multitest_test.go
··· 23 23 "stream.place/streamplace/pkg/gstinit" 24 24 "stream.place/streamplace/pkg/log" 25 25 "stream.place/streamplace/pkg/streamplace" 26 + "stream.place/streamplace/test/remote" 26 27 ) 27 28 28 29 func TestMultinodeSyndication(t *testing.T) { ··· 48 49 log.Log(context.Background(), "created stream key", "did", acct.DID, "pub", pub.DIDKey()) 49 50 whip := &cmd.WHIPClient{ 50 51 StreamKey: priv, 51 - File: "/home/iameli/testvids/RocketLeague_1h55m_1sGOP_1080p60_NoBframes.mp4", 52 + File: remote.RemoteFixture("3188c071b354f2e548d7f2d332699758e8e3ab1600280e5b07cb67eedc64f274/BigBuckBunny_1sGOP_240p30_NoBframes.mp4"), 52 53 Endpoint: fmt.Sprintf("http://%s", node1.Env["SP_HTTP_ADDR"]), 53 54 Count: 1, 54 55 } ··· 105 106 "SP_DEV_ACCOUNT_CREDS": strings.Join(devAccountCreds, ","), 106 107 } 107 108 _, file, _, _ := runtime.Caller(0) 108 - abs, err := filepath.Abs(filepath.Join(filepath.Dir(file), "..", "..", "build-linux-amd64", "streamplace")) 109 + buildDir := fmt.Sprintf("build-%s-%s", runtime.GOOS, runtime.GOARCH) 110 + abs, err := filepath.Abs(filepath.Join(filepath.Dir(file), "..", "..", buildDir, "streamplace")) 109 111 require.NoError(t, err) 110 112 // Run the streamplace binary at abs with the environment env 111 113 cmd := exec.Command(abs)