Skip to content

Commit

Permalink
Don't run any Yarn in TestLoadingDefaultValues
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Oct 25, 2023
1 parent 44f4ee8 commit 1c04b4d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Tests/Runtime/VariableStorageTests/VariableStorageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,9 @@ public IEnumerator TestSavingAndLoadingFile()

// need another test here where we test the default variable loading
// because we don't currently actually test that...
[UnityTest]
public IEnumerator TestLoadingDefaultValues()
[Test]
public void TestLoadingDefaultValues()
{
// intentionally not running the node that declares the vars we intend on testing
Runner.StartDialogue("EmptyNode");
yield return null;

var hasVar = VarStorage.TryGetValue<string>("$defaultString", out var defaultString);
Assert.IsTrue(hasVar);
Assert.AreEqual("hello", defaultString);
Expand Down

0 comments on commit 1c04b4d

Please sign in to comment.