From 1a3546d124fe3b70346cc59074fbf3714e06a832 Mon Sep 17 00:00:00 2001 From: Rafi Shamim Date: Wed, 6 Apr 2022 12:23:10 -0400 Subject: [PATCH] roachtest: fix permissions in typeorm testt Release note: None --- pkg/cmd/roachtest/tests/typeorm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/roachtest/tests/typeorm.go b/pkg/cmd/roachtest/tests/typeorm.go index 7a31694e06d2..102da37cb282 100644 --- a/pkg/cmd/roachtest/tests/typeorm.go +++ b/pkg/cmd/roachtest/tests/typeorm.go @@ -87,7 +87,7 @@ func registerTypeORM(r registry.Registry) { c, node, "add nodesource repository", - `sudo apt install ca-certificates && curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -`, + `sudo apt install ca-certificates && curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -`, ); err != nil { t.Fatal(err) } @@ -152,14 +152,14 @@ func registerTypeORM(r registry.Registry) { c, node, "building TypeORM", - `cd /mnt/data1/typeorm/ && sudo npm install --unsafe-perm=true --allow-root`, + `cd /mnt/data1/typeorm/ && npm install`, ); err != nil { t.Fatal(err) } t.Status("running TypeORM test suite - approx 12 mins") rawResults, err := c.RunWithBuffer(ctx, t.L(), node, - `cd /mnt/data1/typeorm/ && sudo npm test --unsafe-perm=true --allow-root`, + `cd /mnt/data1/typeorm/ && npm test`, ) rawResultsStr := string(rawResults) t.L().Printf("Test Results: %s", rawResultsStr)