Skip to content

Commit 508bd9e

Browse files
author
childish-sambino
authored
test: fix type on broken cluster test (#156)
1 parent 949d09c commit 508bd9e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test-and-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: make test
4949

5050
- name: Run Cluster Tests
51-
if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging') && github.event_name != 'pull_request' }}
51+
if: (!github.event.pull_request.head.repo.fork)
5252
env:
5353
TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
5454
TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY}}

cluster_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ func TestListParams(t *testing.T) {
9797
assert.Nil(t, err)
9898
assert.NotNil(t, sink)
9999

100-
types := []map[string]interface{}{
101-
{
100+
types := []interface{}{
101+
map[string]interface{}{
102102
"type": "com.twilio.messaging.message.delivered",
103103
},
104-
{
104+
map[string]interface{}{
105105
"type": "com.twilio.messaging.message.sent",
106106
},
107107
}

0 commit comments

Comments
 (0)