fix deno_flow_same_worker test

This commit is contained in:
Ruben Fiszel
2022-11-27 00:50:09 +01:00
parent f4ec1a7fc3
commit e3edec0951
2 changed files with 14 additions and 14 deletions
+11 -11
View File
@@ -4082,7 +4082,7 @@ dependencies = [
[[package]]
name = "windmill-api"
version = "1.50.0"
version = "1.51.0"
dependencies = [
"anyhow",
"argon2",
@@ -4132,7 +4132,7 @@ dependencies = [
[[package]]
name = "windmill-api-client"
version = "1.50.0"
version = "1.51.0"
dependencies = [
"base64",
"chrono",
@@ -4147,7 +4147,7 @@ dependencies = [
[[package]]
name = "windmill-audit"
version = "1.50.0"
version = "1.51.0"
dependencies = [
"chrono",
"serde",
@@ -4160,7 +4160,7 @@ dependencies = [
[[package]]
name = "windmill-common"
version = "1.50.0"
version = "1.51.0"
dependencies = [
"anyhow",
"axum",
@@ -4184,7 +4184,7 @@ dependencies = [
[[package]]
name = "windmill-parser"
version = "1.50.0"
version = "1.51.0"
dependencies = [
"serde",
"serde_json",
@@ -4192,7 +4192,7 @@ dependencies = [
[[package]]
name = "windmill-parser-bash"
version = "1.50.0"
version = "1.51.0"
dependencies = [
"anyhow",
"itertools",
@@ -4206,7 +4206,7 @@ dependencies = [
[[package]]
name = "windmill-parser-go"
version = "1.50.0"
version = "1.51.0"
dependencies = [
"anyhow",
"itertools",
@@ -4218,7 +4218,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py"
version = "1.50.0"
version = "1.51.0"
dependencies = [
"anyhow",
"itertools",
@@ -4233,7 +4233,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ts"
version = "1.50.0"
version = "1.51.0"
dependencies = [
"anyhow",
"deno_core",
@@ -4247,7 +4247,7 @@ dependencies = [
[[package]]
name = "windmill-queue"
version = "1.50.0"
version = "1.51.0"
dependencies = [
"anyhow",
"chrono",
@@ -4270,7 +4270,7 @@ dependencies = [
[[package]]
name = "windmill-worker"
version = "1.50.0"
version = "1.51.0"
dependencies = [
"anyhow",
"async-recursion",
+3 -3
View File
@@ -1116,7 +1116,7 @@ async fn test_deno_flow_same_worker(db: Pool<Postgres>) {
let server = ApiServer::start(db.clone()).await;
let write_file = r#"export async function main(loop: boolean, i: number, path: string) {
await Deno.writeTextFile(`/shared/${path}`, `${loop} ${i}`);
await Deno.writeTextFile(`./shared/${path}`, `${loop} ${i}`);
}"#
.to_string();
@@ -1201,7 +1201,7 @@ async fn test_deno_flow_same_worker(db: Pool<Postgres>) {
.into(),
language: ScriptLang::Deno,
content: r#"export async function main(path: string, path2: string) {
return await Deno.readTextFile(`/shared/${path}`) + "," + await Deno.readTextFile(`/shared/${path2}`);
return await Deno.readTextFile(`./shared/${path}`) + "," + await Deno.readTextFile(`./shared/${path2}`);
}"#
.to_string(),
path: None,
@@ -1245,7 +1245,7 @@ async fn test_deno_flow_same_worker(db: Pool<Postgres>) {
.into(),
language: ScriptLang::Deno,
content: r#"export async function main(path: string, loops: string[], path2: string) {
return await Deno.readTextFile(`/shared/${path}`) + "," + loops + "," + await Deno.readTextFile(`/shared/${path2}`);
return await Deno.readTextFile(`./shared/${path}`) + "," + loops + "," + await Deno.readTextFile(`./shared/${path2}`);
}"#
.to_string(),
path: None,