Skip to content

Commit

Permalink
Fix test data empty array and NULL value inserts
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdubbelboer committed Jun 16, 2024
1 parent ffa75e2 commit 37316e5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions features/support/steps/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,17 @@ Given('these lobbies exist:', async function (this: World, lobbies: DataTable) {
peers.push(`'peer${i}'`)
}

v.push(`ARRAY [${peers.join(', ')}]`)
v.push(`ARRAY[${peers.join(', ')}]::VARCHAR(20)[]`)
} else {
if (!columns.includes(key)) {
columns.push(key)
}

v.push(`'${value}'`)
if (value === 'null') {
v.push('NULL')
} else {
v.push(`'${value}'`)
}
}
})

Expand Down

0 comments on commit 37316e5

Please sign in to comment.