File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 35
35
defaultBackup = false
36
36
defaultDown = false
37
37
defaultWeight = 1
38
- defaultTimeout = 10 * time .Second
38
+ defaultTimeout = 10 * time .Second
39
39
)
40
40
41
41
// ErrUnsupportedVer means that client's API version is not supported by NGINX plus API.
Original file line number Diff line number Diff line change @@ -582,7 +582,7 @@ func TestClientWithAPIVersion(t *testing.T) {
582
582
func TestClientWithTimeout (t * testing.T ) {
583
583
t .Parallel ()
584
584
// Test creating a new client with a supported API version on the client
585
- client , err := NewNginxClient ("http://api-url" , WithTimeout (1 * time .Second ))
585
+ client , err := NewNginxClient ("http://api-url" , WithTimeout (1 * time .Second ))
586
586
if err != nil {
587
587
t .Fatalf ("unexpected error: %v" , err )
588
588
}
@@ -591,7 +591,7 @@ func TestClientWithTimeout(t *testing.T) {
591
591
}
592
592
593
593
// Test creating a new client with an invalid duration
594
- client , err = NewNginxClient ("http://api-url" , WithTimeout (- 1 * time .Second ))
594
+ client , err = NewNginxClient ("http://api-url" , WithTimeout (- 1 * time .Second ))
595
595
if err == nil {
596
596
t .Fatalf ("expected error, but got nil" )
597
597
}
You can’t perform that action at this time.
0 commit comments