Skip to content

Commit c293a8c

Browse files
authored
run tests against unsafe tag as well (#1159)
* run tests against unsafe tag as well * differentiate test step name * use random transactional id
1 parent 72279f4 commit c293a8c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.circleci/config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
- run:
5252
name: Test kafka-go
5353
command: go test -race -cover ./...
54+
- run:
55+
name: Test kafka-go unsafe
56+
command: go test -tags=unsafe -race -cover ./...
5457
- run:
5558
name: Test kafka-go/sasl/aws_msk_iam
5659
working_directory: ./sasl/aws_msk_iam

initproducerid_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func TestClientInitProducerId(t *testing.T) {
1818
client, shutdown := newLocalClient()
1919
defer shutdown()
2020

21-
tid := "transaction1"
21+
tid := makeTransactionalID()
2222
// Wait for kafka setup and Coordinator to be available.
2323
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
2424
defer cancel()

0 commit comments

Comments
 (0)