@@ -60,7 +60,7 @@ func TestMain(m *testing.M) {
60
60
//
61
61
// In either case, the following topics will be deleted (if they exist) and
62
62
// then created/pre-seeded with data for the functional test run:
63
- // * uncomitted -topic-test-4
63
+ // * uncommitted -topic-test-4
64
64
// * test.1
65
65
// * test.4
66
66
// * test.64
@@ -134,7 +134,7 @@ func prepareDockerTestEnvironment(ctx context.Context, env *testEnvironment) err
134
134
c .Env = append (os .Environ (), fmt .Sprintf ("CONFLUENT_PLATFORM_VERSION=%s" , confluentPlatformVersion ))
135
135
err := c .Run ()
136
136
if err != nil {
137
- return fmt .Errorf ("failed to run docker-compose to start test enviroment : %w" , err )
137
+ return fmt .Errorf ("failed to run docker-compose to start test environment : %w" , err )
138
138
}
139
139
140
140
// Set up toxiproxy Proxies
@@ -252,10 +252,10 @@ func tearDownDockerTestEnvironment(ctx context.Context, env *testEnvironment) er
252
252
c .Stderr = os .Stderr
253
253
rmErr := c .Run ()
254
254
if downErr != nil {
255
- return fmt .Errorf ("failed to run docker-compose to stop test enviroment : %w" , downErr )
255
+ return fmt .Errorf ("failed to run docker-compose to stop test environment : %w" , downErr )
256
256
}
257
257
if rmErr != nil {
258
- return fmt .Errorf ("failed to run docker-compose to rm test enviroment : %w" , rmErr )
258
+ return fmt .Errorf ("failed to run docker-compose to rm test environment : %w" , rmErr )
259
259
}
260
260
return nil
261
261
}
@@ -342,14 +342,14 @@ func prepareTestTopics(ctx context.Context, env *testEnvironment) error {
342
342
}
343
343
344
344
// This is kind of gross, but we don't actually have support for doing transactional publishing
345
- // with sarama, so we need to use a java-based tool to publish uncomitted messages to
345
+ // with sarama, so we need to use a java-based tool to publish uncommitted messages to
346
346
// the uncommitted-topic-test-4 topic
347
347
jarName := filepath .Base (uncomittedMsgJar )
348
348
if _ , err := os .Stat (jarName ); err != nil {
349
349
Logger .Printf ("Downloading %s\n " , uncomittedMsgJar )
350
350
req , err := http .NewRequest ("GET" , uncomittedMsgJar , nil )
351
351
if err != nil {
352
- return fmt .Errorf ("failed creating requst for uncomitted msg jar: %w" , err )
352
+ return fmt .Errorf ("failed creating requst for uncommitted msg jar: %w" , err )
353
353
}
354
354
res , err := http .DefaultClient .Do (req )
355
355
if err != nil {
@@ -358,13 +358,13 @@ func prepareTestTopics(ctx context.Context, env *testEnvironment) error {
358
358
defer res .Body .Close ()
359
359
jarFile , err := os .OpenFile (jarName , os .O_WRONLY | os .O_TRUNC | os .O_CREATE , 0o644 )
360
360
if err != nil {
361
- return fmt .Errorf ("failed opening the uncomitted msg jar: %w" , err )
361
+ return fmt .Errorf ("failed opening the uncommitted msg jar: %w" , err )
362
362
}
363
363
defer jarFile .Close ()
364
364
365
365
_ , err = io .Copy (jarFile , res .Body )
366
366
if err != nil {
367
- return fmt .Errorf ("failed writing the uncomitted msg jar: %w" , err )
367
+ return fmt .Errorf ("failed writing the uncommitted msg jar: %w" , err )
368
368
}
369
369
}
370
370
@@ -373,7 +373,7 @@ func prepareTestTopics(ctx context.Context, env *testEnvironment) error {
373
373
c .Stderr = os .Stderr
374
374
err = c .Run ()
375
375
if err != nil {
376
- return fmt .Errorf ("failed running uncomitted msg jar: %w" , err )
376
+ return fmt .Errorf ("failed running uncommitted msg jar: %w" , err )
377
377
}
378
378
return nil
379
379
}
0 commit comments