fix: rename R2 object key prefix from live/ to hls/ for consistency
This commit is contained in:
1 parent
cca8d77325
commit
926d70dc3c
2 files changed
+9
-9
No files matched your search
@@ -495,15 +495,15 @@ func TestSyncToR2(t *testing.T) {
|
||||
return &s3.PutObjectOutput{}, nil
|
||||
}
|
||||
|
||||
if err := SyncToR2(localPath, "live/segment.m4s"); err != nil {
|
||||
if err := SyncToR2(localPath, "hls/segment.m4s"); err != nil {
|
||||
t.Fatalf("SyncToR2 error: %v", err)
|
||||
}
|
||||
|
||||
if gotBucket != "linearvoid-media" {
|
||||
t.Fatalf("bucket = %q, want %q", gotBucket, "linearvoid-media")
|
||||
}
|
||||
if gotKey != "live/segment.m4s" {
|
||||
t.Fatalf("key = %q, want %q", gotKey, "live/segment.m4s")
|
||||
if gotKey != "hls/segment.m4s" {
|
||||
t.Fatalf("key = %q, want %q", gotKey, "hls/segment.m4s")
|
||||
}
|
||||
if string(gotBody) != "segment-bytes" {
|
||||
t.Fatalf("body = %q, want %q", string(gotBody), "segment-bytes")
|
||||
|
||||
Reference in new issue
Block a user