migrated plugin_deadlock_test.go to use testify (#12077)

Этот коммит содержится в:
Phillip Ahereza
2019-09-15 00:08:04 +03:00
коммит произвёл Miguel de la Cruz
родитель 43a068543c
Коммит 7ecd270d7c

Просмотреть файл

@@ -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)