From 4935e542ad01e774141143cebd49e476347267c4 Mon Sep 17 00:00:00 2001 From: David Sutton Date: Fri, 20 Oct 2023 18:40:22 +1030 Subject: [PATCH] file_test.go: Update Tests (b *Broadcast) UnmarshalJSON no longer starts revid (see PR #510). (m *BroadcastManager) MarshalJSON no longer needs to worry about slate exit signals due to broadcast status (see PR #511). --- cmd/vidforward/file_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/vidforward/file_test.go b/cmd/vidforward/file_test.go index 4d6af563..adb6a6d7 100644 --- a/cmd/vidforward/file_test.go +++ b/cmd/vidforward/file_test.go @@ -93,7 +93,6 @@ func TestBroadcastUnmarshal(t *testing.T) { mac: testMAC, urls: []string{testURL}, status: statusActive, - rv: newRevidForTest(logger, testURL, t), }, in: []byte("{\"MAC\":\"" + testMAC + "\",\"URLs\":[\"" + testURL + "\"],\"Status\":\"" + statusActive + "\"}"), }, @@ -132,11 +131,10 @@ func TestBroadcastManagerMarshal(t *testing.T) { newRevidForTest((*logging.TestLogger)(t), testURL, t), }, }, - slateExitSignals: newExitSignalsForTest(t, testMAC), log: logger, dogNotifier: newWatchdogNotifierForTest(t, logger), }, - expect: []byte("{\"Broadcasts\":{\"" + testMAC + "\":{\"MAC\":\"" + testMAC + "\",\"URLs\":[\"" + testURL + "\"],\"Status\":\"" + statusSlate + "\"}},\"SlateExitSignals\":[\"" + testMAC + "\"]}"), + expect: []byte("{\"Broadcasts\":{\"" + testMAC + "\":{\"MAC\":\"" + testMAC + "\",\"URLs\":[\"" + testURL + "\"],\"Status\":\"" + statusSlate + "\"}}}"), }, }