Skip to content

Commit

Permalink
BatchDataGenerationSpec: added timestamp suffix for easier tests retry
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadius committed Jan 20, 2025
1 parent 8118f73 commit e5d1e00
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ class BatchDataGenerationSpec

private val designerServiceUrl = "http://localhost:8080"

private val liveDataGenScenarioName = "SumTransactions-LiveData"
private val randomDataGenScenarioName = "SumTransactions-RandomData"
private val timeBasedRandomSuffix = System.currentTimeMillis()
private val liveDataGenScenarioName = s"SumTransactions-LiveData-$timeBasedRandomSuffix"
private val randomDataGenScenarioName = s"SumTransactions-RandomData-$timeBasedRandomSuffix"

override def beforeAll(): Unit = {
createEmptyBatchScenario(liveDataGenScenarioName, "Default")
Expand Down Expand Up @@ -106,7 +107,7 @@ class BatchDataGenerationSpec
| "nodeResults": {
| "sourceId": [
| {
| "id": "SumTransactions-LiveData-sourceId-0-0",
| "id": "$liveDataGenScenarioName-sourceId-0-0",
| "variables": {
| "input": {
| "pretty": {
Expand All @@ -122,7 +123,7 @@ class BatchDataGenerationSpec
| ],
| "end": [
| {
| "id": "SumTransactions-LiveData-sourceId-0-0",
| "id": "$liveDataGenScenarioName-sourceId-0-0",
| "variables": {
| "input": {
| "pretty": {
Expand Down Expand Up @@ -183,7 +184,7 @@ class BatchDataGenerationSpec
| "nodeResults": {
| "sourceId": [
| {
| "id": "SumTransactions-LiveData-sourceId-0-0",
| "id": "$liveDataGenScenarioName-sourceId-0-0",
| "variables": {
| "input": {
| "pretty": {
Expand All @@ -199,7 +200,7 @@ class BatchDataGenerationSpec
| ],
| "end": [
| {
| "id": "SumTransactions-LiveData-sourceId-0-0",
| "id": "$liveDataGenScenarioName-sourceId-0-0",
| "variables": {
| "input": {
| "pretty": {
Expand Down

0 comments on commit e5d1e00

Please sign in to comment.