From e0e96496f1d66cb6ccf13a3d5990e48f2bd478e4 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Mon, 23 Oct 2017 10:08:32 +0200 Subject: [PATCH] Revert "ae: add test for resume triggering SyncChanges" This reverts commit cd0262744deab9294af17e4039ed2e2a27818cde. --- agent/ae/ae_test.go | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/agent/ae/ae_test.go b/agent/ae/ae_test.go index 2b61c9a33a..5004353590 100644 --- a/agent/ae/ae_test.go +++ b/agent/ae/ae_test.go @@ -27,7 +27,7 @@ func TestAE_scaleFactor(t *testing.T) { } } -func TestAE_Pause_nestedPauseResume(t *testing.T) { +func TestAE_nestedPauseResume(t *testing.T) { t.Parallel() l := NewStateSyner(nil, 0, nil, nil) if l.Paused() != false { @@ -59,21 +59,7 @@ func TestAE_Pause_nestedPauseResume(t *testing.T) { l.Resume() } -func TestAE_Pause_ResumeTriggersSyncChanges(t *testing.T) { - l := NewStateSyner(nil, 0, nil, nil) - l.Pause() - l.Resume() - select { - case <-l.SyncChanges.Notif(): - // expected - case <-l.SyncFull.Notif(): - t.Fatal("resume triggered SyncFull instead of SyncChanges") - default: - t.Fatal("resume did not trigger SyncFull") - } -} - -func TestAE_Pause_ifNotPausedRun(t *testing.T) { +func TestAE_ifNotPausedRun(t *testing.T) { l := NewStateSyner(nil, 0, nil, nil) errCalled := errors.New("f called")