vendor: Mega update all dependencies
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4080
This commit is contained in:
9
vendor/github.com/onsi/gomega/ghttp/protobuf/simple_message.proto
generated
vendored
9
vendor/github.com/onsi/gomega/ghttp/protobuf/simple_message.proto
generated
vendored
@@ -1,9 +0,0 @@
|
||||
syntax = "proto2";
|
||||
|
||||
package protobuf;
|
||||
|
||||
message SimpleMessage {
|
||||
required string description = 1;
|
||||
required int32 id = 2;
|
||||
optional string metadata = 3;
|
||||
}
|
||||
10
vendor/github.com/onsi/gomega/ghttp/test_server.go
generated
vendored
10
vendor/github.com/onsi/gomega/ghttp/test_server.go
generated
vendored
@@ -198,11 +198,13 @@ func (s *Server) Addr() string {
|
||||
//Close() should be called at the end of each test. It spins down and cleans up the test server.
|
||||
func (s *Server) Close() {
|
||||
s.writeLock.Lock()
|
||||
defer s.writeLock.Unlock()
|
||||
|
||||
server := s.HTTPTestServer
|
||||
s.HTTPTestServer = nil
|
||||
server.Close()
|
||||
s.writeLock.Unlock()
|
||||
|
||||
if server != nil {
|
||||
server.Close()
|
||||
}
|
||||
}
|
||||
|
||||
//ServeHTTP() makes Server an http.Handler
|
||||
@@ -223,7 +225,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
||||
|
||||
//If the handler panics GHTTP will silently succeed. This is bad™.
|
||||
//To catch this case we need to fail the test if the handler has panicked.
|
||||
//However, if the handler is panicking because Ginkgo's causing it to panic (i.e. an asswertion failed)
|
||||
//However, if the handler is panicking because Ginkgo's causing it to panic (i.e. an assertion failed)
|
||||
//then we shouldn't double-report the error as this will confuse people.
|
||||
|
||||
//So: step 1, if this is a Ginkgo panic - do nothing, Ginkgo's aware of the failure
|
||||
|
||||
13
vendor/github.com/onsi/gomega/ghttp/test_server_suite_test.go
generated
vendored
13
vendor/github.com/onsi/gomega/ghttp/test_server_suite_test.go
generated
vendored
@@ -1,13 +0,0 @@
|
||||
package ghttp_test
|
||||
|
||||
import (
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGHTTP(t *testing.T) {
|
||||
RegisterFailHandler(Fail)
|
||||
RunSpecs(t, "GHTTP Suite")
|
||||
}
|
||||
1082
vendor/github.com/onsi/gomega/ghttp/test_server_test.go
generated
vendored
1082
vendor/github.com/onsi/gomega/ghttp/test_server_test.go
generated
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user