Skip to content

Commit afea7d9

Browse files
committed
formatting
1 parent 47453ce commit afea7d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/nginx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var (
3535
defaultBackup = false
3636
defaultDown = false
3737
defaultWeight = 1
38-
defaultTimeout = 10*time.Second
38+
defaultTimeout = 10 * time.Second
3939
)
4040

4141
// ErrUnsupportedVer means that client's API version is not supported by NGINX plus API.

client/nginx_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ func TestClientWithAPIVersion(t *testing.T) {
582582
func TestClientWithTimeout(t *testing.T) {
583583
t.Parallel()
584584
// 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))
586586
if err != nil {
587587
t.Fatalf("unexpected error: %v", err)
588588
}
@@ -591,7 +591,7 @@ func TestClientWithTimeout(t *testing.T) {
591591
}
592592

593593
// 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))
595595
if err == nil {
596596
t.Fatalf("expected error, but got nil")
597597
}

0 commit comments

Comments
 (0)