Skip to content

Commit

Permalink
fix(tests): ignore empty line protocol
Browse files Browse the repository at this point in the history
The tests in scriptQueryBuilder.results seem to be consistently
failing to run because a setup step is attempting to write an empty
line-protocol file. This changes the system such that empty files
are skipped.
  • Loading branch information
mhilton committed Mar 19, 2024
1 parent 45a9f42 commit ad497df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/e2e/shared/scriptQueryBuilder.results.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('Script Builder', () => {
[`ndbc_1table,air_temp_degc=70_degrees station_id=1`],
'defbuck4'
)
writeDataMoar.forEach(data => cy.writeData(data, 'defbuck4'))
writeDataMoar.forEach(data => {if (data,length > 0) cy.writeData(data, 'defbuck4')})
})
})
})
Expand Down

0 comments on commit ad497df

Please sign in to comment.