From 7ecd270d7c0579aae4840df23039b5548b7a3ac9 Mon Sep 17 00:00:00 2001 From: Phillip Ahereza Date: Sun, 15 Sep 2019 00:08:04 +0300 Subject: [PATCH] migrated plugin_deadlock_test.go to use testify (#12077) --- app/plugin_deadlock_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/plugin_deadlock_test.go b/app/plugin_deadlock_test.go index f7dc05f22e..ae777e34f9 100644 --- a/app/plugin_deadlock_test.go +++ b/app/plugin_deadlock_test.go @@ -4,6 +4,7 @@ package app import ( + "github.com/stretchr/testify/require" "os" "strings" "testing" @@ -94,7 +95,7 @@ func TestPluginDeadlock(t *testing.T) { select { case <-done: case <-time.After(30 * time.Second): - t.Fatal("plugin failed to activate: likely deadlocked") + require.Fail(t, "plugin failed to activate: likely deadlocked") go func() { time.Sleep(5 * time.Second) os.Exit(1) @@ -201,7 +202,7 @@ func TestPluginDeadlock(t *testing.T) { select { case <-done: case <-time.After(30 * time.Second): - t.Fatal("plugin failed to activate: likely deadlocked") + require.Fail(t, "plugin failed to activate: likely deadlocked") go func() { time.Sleep(5 * time.Second) os.Exit(1)