OSDN Git Service

Merge pull request #201 from Bytom/v0.1
[bytom/vapor.git] / vendor / github.com / tendermint / abci / client / socket_client_test.go
diff --git a/vendor/github.com/tendermint/abci/client/socket_client_test.go b/vendor/github.com/tendermint/abci/client/socket_client_test.go
deleted file mode 100644 (file)
index 814d5a6..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-package abcicli_test
-
-import (
-       "errors"
-       "testing"
-       "time"
-
-       "github.com/tendermint/abci/client"
-)
-
-func TestSocketClientStopForErrorDeadlock(t *testing.T) {
-       c := abcicli.NewSocketClient(":80", false)
-       err := errors.New("foo-tendermint")
-
-       // See Issue https://github.com/tendermint/abci/issues/114
-       doneChan := make(chan bool)
-       go func() {
-               defer close(doneChan)
-               c.StopForError(err)
-               c.StopForError(err)
-       }()
-
-       select {
-       case <-doneChan:
-       case <-time.After(time.Second * 4):
-               t.Fatalf("Test took too long, potential deadlock still exists")
-       }
-}