Skip to content

Commit

Permalink
Fix explicit test
Browse files Browse the repository at this point in the history
  • Loading branch information
nowsprinting committed Oct 20, 2024
1 parent d864457 commit fa09285
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Tests/Editor/ContextMenu/DoCreateTitleOwnAssemblyTest.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// Copyright (c) 2023 DeNA Co., Ltd.
// This software is released under the MIT License.

using System.Collections;
using System.IO;
using DeNA.Anjin.Editor.Definitions;
using NUnit.Framework;
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using UnityEngine.TestTools;

namespace DeNA.Anjin.Editor.ContextMenu
{
Expand Down Expand Up @@ -34,17 +36,18 @@ public void SetUp()
Assume.That(exist, Is.False, "Generated folder does not exist before test");
}

[TearDown]
public void TearDown()
[UnityTearDown]
public IEnumerator TearDown()
{
var exist = AssetDatabase.IsValidFolder(_path);
if (exist)
{
AssetDatabase.DeleteAsset(_path);
}

yield return new WaitForDomainReload();
}

[Explicit("Occurs infinite loop when \"Run All\"")]
[Test]
public void Action_CreatedRuntimeFolderContainingAsmdef()
{
Expand Down

0 comments on commit fa09285

Please sign in to comment.