diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index de0d0366..acdc185b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -65,4 +65,4 @@ jobs: key: ${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }} - name: Test with tryorama - run: nix develop -c $SHELL -c "npm test" + run: nix develop -c $SHELL -c "npm run test" diff --git a/tests/src/mewsfeed/agent_pins/pinner-to-hashes.test.ts b/tests/src/mewsfeed/agent_pins/pinner-to-hashes.test.ts index 0ae5f1c6..843a4246 100644 --- a/tests/src/mewsfeed/agent_pins/pinner-to-hashes.test.ts +++ b/tests/src/mewsfeed/agent_pins/pinner-to-hashes.test.ts @@ -87,6 +87,6 @@ test("link a Pinner to a Hash", async () => { assert.equal(linksOutput.length, 0); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); diff --git a/tests/src/mewsfeed/follows/follower-to-creators.test.ts b/tests/src/mewsfeed/follows/follower-to-creators.test.ts index b5f9b60e..b5326afb 100644 --- a/tests/src/mewsfeed/follows/follower-to-creators.test.ts +++ b/tests/src/mewsfeed/follows/follower-to-creators.test.ts @@ -97,7 +97,7 @@ test("link a Follower to a Creator", async () => { assert.equal(linksOutput.length, 0); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -127,7 +127,7 @@ test("Agent cannot follow themselves", async () => { ); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -198,7 +198,7 @@ test("Agent can only change their own follows", async () => { ); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); diff --git a/tests/src/mewsfeed/likes/liker-to-hashes.test.ts b/tests/src/mewsfeed/likes/liker-to-hashes.test.ts index ffe191cb..6cea47fb 100644 --- a/tests/src/mewsfeed/likes/liker-to-hashes.test.ts +++ b/tests/src/mewsfeed/likes/liker-to-hashes.test.ts @@ -87,7 +87,7 @@ test("link a Liker to a Hash", async () => { assert.equal(linksOutput.length, 0); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -157,6 +157,6 @@ test("Agent can only change their own likes", async () => { ); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); diff --git a/tests/src/mewsfeed/mews/agent-mews.test.ts b/tests/src/mewsfeed/mews/agent-mews.test.ts index eb62cf3e..e09914cb 100644 --- a/tests/src/mewsfeed/mews/agent-mews.test.ts +++ b/tests/src/mewsfeed/mews/agent-mews.test.ts @@ -50,7 +50,7 @@ test("create a Mew and get agent mews", async () => { assert.deepEqual(actionHash, collectionOutput[0].action_hash); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -247,6 +247,6 @@ test("Agent mews list are time-paginated", async () => { assert.lengthOf(page5, 0); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); diff --git a/tests/src/mewsfeed/mews/agent-to-notifications.test.ts b/tests/src/mewsfeed/mews/agent-to-notifications.test.ts index 54a858bf..99104133 100644 --- a/tests/src/mewsfeed/mews/agent-to-notifications.test.ts +++ b/tests/src/mewsfeed/mews/agent-to-notifications.test.ts @@ -76,7 +76,7 @@ test("notifications include my agent follows & unfollows", async () => { expect(count).toEqual(2); }, true, - { timeout: 150000 } + { timeout: 500000 } ); }); @@ -157,7 +157,7 @@ test("notifications include my mews' likes & unlikes", async () => { expect(count).toEqual(2); }, true, - { timeout: 150000 } + { timeout: 500000 } ); }); @@ -238,7 +238,7 @@ test("notifications include my mews' pins & unpins", async () => { expect(count).toEqual(2); }, true, - { timeout: 150000 } + { timeout: 500000 } ); }); @@ -350,7 +350,7 @@ test("notifications include my mews' replies, quotes, mewmews", async () => { expect(count).toEqual(3); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -480,7 +480,7 @@ test("notifications include replies, quotes, mewmews to mews that I also respond expect(count).toEqual(3); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -750,6 +750,6 @@ test("notifications list is time-paginated", async () => { assert.lengthOf(page5, 0); }, true, - { timeout: 150000 } + { timeout: 500000 } ); }); diff --git a/tests/src/mewsfeed/mews/dna-properties.test.ts b/tests/src/mewsfeed/mews/dna-properties.test.ts index 4dbf7965..ffcc9369 100644 --- a/tests/src/mewsfeed/mews/dna-properties.test.ts +++ b/tests/src/mewsfeed/mews/dna-properties.test.ts @@ -53,7 +53,7 @@ test("Mew must not be longer than DNA property mew_characters_max chars", async } }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -103,7 +103,7 @@ test("Mew must not be shorter than DNA property mew_characters_min chars", async } }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -158,7 +158,7 @@ test("Mew can be any length if DNA property mew_characters_min and mew_character ); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -185,6 +185,6 @@ test("Can get deserialized DNA Properties", async () => { expect(properties).toHaveProperty("mew_characters_max", 200); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); diff --git a/tests/src/mewsfeed/mews/followed-creators-mews.test.ts b/tests/src/mewsfeed/mews/followed-creators-mews.test.ts index 69845b4b..073e25ad 100644 --- a/tests/src/mewsfeed/mews/followed-creators-mews.test.ts +++ b/tests/src/mewsfeed/mews/followed-creators-mews.test.ts @@ -54,7 +54,7 @@ test("create a Mew and get followed creators mews", async () => { assert.deepEqual(actionHash, collectionOutput[0].action_hash); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -116,7 +116,7 @@ test("Followed creators mews should include mews of followed creator", async () ); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -172,7 +172,7 @@ test("Followed creators mews should include own mews", async () => { ); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -238,7 +238,7 @@ test("Followed creators mews should not include mews of non-followed creator", a ); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -307,7 +307,7 @@ test("Unfollowing should exclude creators mews from feed", async () => { assert.ok(bobMewsFeed.length === 0, "bob's mews feed is empty"); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -421,7 +421,7 @@ test("Followed creators mews should be ordered by timestamp in descending order" ); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -613,6 +613,6 @@ test("Followed creators mews list are time-paginated", async () => { assert.lengthOf(page5, 0); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); diff --git a/tests/src/mewsfeed/mews/mention-to-mews.test.ts b/tests/src/mewsfeed/mews/mention-to-mews.test.ts index 632ee5f7..79eba740 100644 --- a/tests/src/mewsfeed/mews/mention-to-mews.test.ts +++ b/tests/src/mewsfeed/mews/mention-to-mews.test.ts @@ -68,7 +68,7 @@ test("mention in mews", async () => { assert.deepEqual(mentionedMewsAlice[0].action_hash, actionHash3); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -265,6 +265,6 @@ test("Mentions list are time-paginated", async () => { assert.lengthOf(page5, 0); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); diff --git a/tests/src/mewsfeed/mews/mew-to-responses.test.ts b/tests/src/mewsfeed/mews/mew-to-responses.test.ts index 6b65def1..498baaae 100644 --- a/tests/src/mewsfeed/mews/mew-to-responses.test.ts +++ b/tests/src/mewsfeed/mews/mew-to-responses.test.ts @@ -72,7 +72,7 @@ test("Agent can reply to a mew", async () => { ); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -154,7 +154,7 @@ test("Agent can mewmew a mew, only once", async () => { ); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -224,6 +224,6 @@ test("Agent can quote a mew", async () => { ); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); diff --git a/tests/src/mewsfeed/mews/pinner-to-mews.test.ts b/tests/src/mewsfeed/mews/pinner-to-mews.test.ts index 76748148..c784031c 100644 --- a/tests/src/mewsfeed/mews/pinner-to-mews.test.ts +++ b/tests/src/mewsfeed/mews/pinner-to-mews.test.ts @@ -71,6 +71,6 @@ test("link a Pinner to a Mew", async () => { assert.equal(linksOutput.length, 0); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); diff --git a/tests/src/mewsfeed/mews/tags-to-mews.test.ts b/tests/src/mewsfeed/mews/tags-to-mews.test.ts index 1a93d018..7d4e2133 100644 --- a/tests/src/mewsfeed/mews/tags-to-mews.test.ts +++ b/tests/src/mewsfeed/mews/tags-to-mews.test.ts @@ -103,7 +103,7 @@ test("Hashtag, cashtag and mention", async () => { assert.ok(mentionedMews.length === 1, "one mew with mention"); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -189,7 +189,7 @@ test("Prefix index should return hashtags and cashtags", async () => { assert.equal(cashtags[0], "$cashtag", "hashtag search result matches"); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -388,7 +388,7 @@ test("Hashtags list are time-paginated", async () => { assert.lengthOf(page5, 0); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); @@ -593,6 +593,6 @@ test("Cashtags list are time-paginated", async () => { assert.lengthOf(page5, 0); }, true, - { timeout: 100000 } + { timeout: 500000 } ); }); diff --git a/tests/vitest.config.ts b/tests/vitest.config.ts index 2657d47e..e81c748a 100644 --- a/tests/vitest.config.ts +++ b/tests/vitest.config.ts @@ -3,7 +3,7 @@ import { defineConfig } from "vitest/config"; export default defineConfig({ test: { threads: false, - testTimeout: 60 * 1000 * 3, // 3 mins + testTimeout: 60 * 1000 * 10, // 10 mins outputDiffLines: 100, outputDiffMaxSize: 100000, }, diff --git a/ui/src/components/BaseMewContent.vue b/ui/src/components/BaseMewContent.vue index cd91ede3..35a6d7c6 100644 --- a/ui/src/components/BaseMewContent.vue +++ b/ui/src/components/BaseMewContent.vue @@ -21,7 +21,7 @@