From bb1d544f43f1a6eedb013c4aa8f6e36eebe67695 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 9 Dec 2019 08:09:07 +0000 Subject: [PATCH] fix(test): Correctly assert mocks are called --- tmux_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmux_test.go b/tmux_test.go index c909956..e634451 100644 --- a/tmux_test.go +++ b/tmux_test.go @@ -103,7 +103,7 @@ func TestTmuxExec(t *testing.T) { assert.Equal(t, tt.out, out) } - runner.AssertExpectations(t) + assert.True(t, runner.AssertExpectations(t)) } } @@ -219,6 +219,6 @@ status-left This Is Left assert.Equal(t, tt.error, err) } - runner.AssertExpectations(t) + assert.True(t, runner.AssertExpectations(t)) } }