Skip to content

Commit

Permalink
fix comments in integration tests (#114)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
  • Loading branch information
pablochacin authored Jan 20, 2025
1 parent db267db commit 13aa3fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
func Test_BuildServer(t *testing.T) {
t.Parallel()

// 1. setup a file store
store, err := filestore.NewFileStore(filepath.Join(t.TempDir(), "store"))
if err != nil {
t.Fatalf("store setup %v", err)
Expand All @@ -39,7 +40,7 @@ func Test_BuildServer(t *testing.T) {
}
storeSrv := httptest.NewServer(storeHandler)

// 3. configure a local builder
// 3. configure a builder
storeClient, err := strclient.NewStoreClient(strclient.StoreClientConfig{Server: storeSrv.URL})
if err != nil {
t.Fatalf("store client setup %v", err)
Expand All @@ -62,12 +63,13 @@ func Test_BuildServer(t *testing.T) {
t.Fatalf("setup %v", err)
}

// 5. start a builder server
// 4. start a builder server
srvConfig := server.APIServerConfig{
BuildService: builder,
}
buildSrv := httptest.NewServer(server.NewAPIServer(srvConfig))

// 5. test building k6 with different options
testCases := []struct {
title string
platform string
Expand Down

0 comments on commit 13aa3fe

Please # to comment.