Skip to content

Commit

Permalink
Fix invalid tests
Browse files Browse the repository at this point in the history
Because of #482, `nodes` are not modified thus we must use the return
value in step-by-step tests
  • Loading branch information
lambdalisue committed Aug 26, 2023
1 parent 7b15c11 commit 9cfb164
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/fern/internal/node.vimspec
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ Describe fern#internal#node
\])

let [r, e] = Promise.wait(
\ fern#internal#node#reveal(['deep', 'alpha'], nodes, provider, Comparator, token),
\ fern#internal#node#reveal(['deep', 'alpha'], r, provider, Comparator, token),
\ { 'timeout': TIMEOUT },
\)
Assert Equals(e, v:null)
Expand All @@ -410,7 +410,7 @@ Describe fern#internal#node
\])

let [r, e] = Promise.wait(
\ fern#internal#node#reveal(['deep', 'alpha', 'beta'], nodes, provider, Comparator, token),
\ fern#internal#node#reveal(['deep', 'alpha', 'beta'], r, provider, Comparator, token),
\ { 'timeout': TIMEOUT },
\)
Assert Equals(e, v:null)
Expand All @@ -426,7 +426,7 @@ Describe fern#internal#node
\])

let [r, e] = Promise.wait(
\ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma'], nodes, provider, Comparator, token),
\ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma'], r, provider, Comparator, token),
\ { 'timeout': TIMEOUT },
\)
Assert Equals(e, v:null)
Expand All @@ -442,7 +442,7 @@ Describe fern#internal#node
\])

let [r, e] = Promise.wait(
\ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma', 'UNKNOWN'], nodes, provider, Comparator, token),
\ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma', 'UNKNOWN'], r, provider, Comparator, token),
\ { 'timeout': TIMEOUT },
\)
Assert Equals(e, v:null)
Expand Down Expand Up @@ -492,7 +492,7 @@ Describe fern#internal#node
\])

let [r, e] = Promise.wait(
\ fern#internal#node#reveal(['deep', 'alpha'], nodes, provider, Comparator, token),
\ fern#internal#node#reveal(['deep', 'alpha'], r, provider, Comparator, token),
\ { 'timeout': TIMEOUT },
\)
Assert Equals(e, v:null)
Expand All @@ -507,7 +507,7 @@ Describe fern#internal#node
\])

let [r, e] = Promise.wait(
\ fern#internal#node#reveal(['deep', 'alpha', 'beta'], nodes, provider, Comparator, token),
\ fern#internal#node#reveal(['deep', 'alpha', 'beta'], r, provider, Comparator, token),
\ { 'timeout': TIMEOUT },
\)
Assert Equals(e, v:null)
Expand All @@ -523,7 +523,7 @@ Describe fern#internal#node
\])

let [r, e] = Promise.wait(
\ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma'], nodes, provider, Comparator, token),
\ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma'], r, provider, Comparator, token),
\ { 'timeout': TIMEOUT },
\)
Assert Equals(e, v:null)
Expand All @@ -539,7 +539,7 @@ Describe fern#internal#node
\])

let [r, e] = Promise.wait(
\ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma', 'UNKNOWN'], nodes, provider, Comparator, token),
\ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma', 'UNKNOWN'], r, provider, Comparator, token),
\ { 'timeout': TIMEOUT },
\)
Assert Equals(e, v:null)
Expand Down

0 comments on commit 9cfb164

Please sign in to comment.