Skip to content

Commit

Permalink
format files
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
  • Loading branch information
beeme1mr committed Jan 23, 2025
1 parent 170176c commit 9244e27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions core/pkg/sync/blob/blob_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
)

type Sync struct {
Bucket string
Object string
Bucket string
Object string
BlobURLMux *blob.URLMux
Cron Cron
Logger *logger.Logger
Expand Down
14 changes: 7 additions & 7 deletions core/pkg/sync/http/http_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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
})
},
Expand Down Expand Up @@ -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
})
},
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 9244e27

Please # to comment.