Skip to content

Commit

Permalink
[Task] #77, improve example test data
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed Aug 26, 2024
1 parent 2d57a38 commit 11d760a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testData/createTestData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('test Data', () => {
const lat = (start.lat + (diff.lat / (entries - 1) * i)).toFixed(8);
const lon = (start.lon + (diff.lon / (entries - 1) * i)).toFixed(8);
setTimeout(async () => {
await callServer(undefined, `user=xx&lat=${lat}&lon=${lon}&timestamp=R3Pl4C3&hdop=${Math.floor(Math.random() * 15) + 1}&altitude=${i+1}&speed=${38 + i*2.5}&heading=${262 + Math.floor(Math.random() * 20) - 10}&key=test`, 200, "GET");
await callServer(undefined, `user=xx&lat=${lat}&lon=${lon}&timestamp=R3Pl4C3&hdop=${Math.floor(Math.random() * 15) + 1}&altitude=${i+1}&speed=${39 + i*2.5}&heading=${262 + Math.floor(Math.random() * 20) - 10}&key=test`, 200, "GET");
console.log("called server " + (i + 1) + "/" + entries);

}, 1000 * 30 * i);
Expand Down

0 comments on commit 11d760a

Please sign in to comment.