From 9244e27909f9c3cf57e0b21b665aee9106a184a6 Mon Sep 17 00:00:00 2001 From: Michael Beemer Date: Thu, 23 Jan 2025 22:16:22 +0000 Subject: [PATCH] format files Signed-off-by: Michael Beemer --- core/pkg/sync/blob/blob_sync.go | 4 ++-- core/pkg/sync/http/http_sync_test.go | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/core/pkg/sync/blob/blob_sync.go b/core/pkg/sync/blob/blob_sync.go index c5d5358a3..54782c075 100644 --- a/core/pkg/sync/blob/blob_sync.go +++ b/core/pkg/sync/blob/blob_sync.go @@ -18,8 +18,8 @@ import ( ) type Sync struct { - Bucket string - Object string + Bucket string + Object string BlobURLMux *blob.URLMux Cron Cron Logger *logger.Logger diff --git a/core/pkg/sync/http/http_sync_test.go b/core/pkg/sync/http/http_sync_test.go index b525d5119..c50e6a484 100644 --- a/core/pkg/sync/http/http_sync_test.go +++ b/core/pkg/sync/http/http_sync_test.go @@ -24,12 +24,12 @@ func TestSimpleSync(t *testing.T) { return nil }) mockCron.EXPECT().Start().Times(1) - + mockClient := syncmock.NewMockClient(ctrl) responseBody := "test response" resp := &http.Response{ Header: map[string][]string{"Content-Type": {"application/json"}}, - Body: io.NopCloser(strings.NewReader(responseBody)), + Body: io.NopCloser(strings.NewReader(responseBody)), } mockClient.EXPECT().Do(gomock.Any()).Return(resp, nil) @@ -74,7 +74,7 @@ func TestHTTPSync_Fetch(t *testing.T) { setup: func(t *testing.T, client *syncmock.MockClient) { client.EXPECT().Do(gomock.Any()).Return(&http.Response{ Header: map[string][]string{"Content-Type": {"application/json"}}, - Body: io.NopCloser(strings.NewReader("test response")), + Body: io.NopCloser(strings.NewReader("test response")), }, nil) }, uri: "http://localhost", @@ -100,7 +100,7 @@ func TestHTTPSync_Fetch(t *testing.T) { setup: func(t *testing.T, client *syncmock.MockClient) { client.EXPECT().Do(gomock.Any()).Return(&http.Response{ Header: map[string][]string{"Content-Type": {"application/json"}}, - Body: io.NopCloser(strings.NewReader("test response")), + Body: io.NopCloser(strings.NewReader("test response")), }, nil) }, uri: "http://localhost", @@ -128,7 +128,7 @@ func TestHTTPSync_Fetch(t *testing.T) { } return &http.Response{ Header: map[string][]string{"Content-Type": {"application/json"}}, - Body: io.NopCloser(strings.NewReader("test response")), + Body: io.NopCloser(strings.NewReader("test response")), }, nil }) }, @@ -158,7 +158,7 @@ func TestHTTPSync_Fetch(t *testing.T) { } return &http.Response{ Header: map[string][]string{"Content-Type": {"application/json"}}, - Body: io.NopCloser(strings.NewReader("test response")), + Body: io.NopCloser(strings.NewReader("test response")), }, nil }) }, @@ -240,7 +240,7 @@ func TestHTTPSync_Resync(t *testing.T) { setup: func(t *testing.T, client *syncmock.MockClient) { client.EXPECT().Do(gomock.Any()).Return(&http.Response{ Header: map[string][]string{"Content-Type": {"application/json"}}, - Body: io.NopCloser(strings.NewReader("test response")), + Body: io.NopCloser(strings.NewReader("test response")), }, nil) }, uri: "http://localhost",