From ba9229cad5f7ebd6518a93879a85c8a3837a3a92 Mon Sep 17 00:00:00 2001 From: Tom Erez Date: Wed, 4 Jan 2023 08:21:56 -0800 Subject: [PATCH] Remove test for MjVfs read. The c# library never reads from MjVfs files, so this test is superfluous (and flaky). PiperOrigin-RevId: 499490518 Change-Id: I417959b5374c5ede29544ee3f463928513e28d07 --- unity/Tests/Editor/Tools/MjVFSEditorTests.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/unity/Tests/Editor/Tools/MjVFSEditorTests.cs b/unity/Tests/Editor/Tools/MjVFSEditorTests.cs index 0ad8d434..b43ea404 100644 --- a/unity/Tests/Editor/Tools/MjVFSEditorTests.cs +++ b/unity/Tests/Editor/Tools/MjVFSEditorTests.cs @@ -49,15 +49,5 @@ namespace Mujoco { _vfs.AddFile(filename, "contents"); Assert.That(_vfs.FindFile(filename), Is.EqualTo(0)); } - - [Test] - public unsafe void AddedFileContentsAreCorrect() { - var filename = "filename"; - var contents = "contents"; - _vfs.AddFile(filename, contents); - var fileIndex = _vfs.FindFile(filename); - var filedata = Marshal.PtrToStringAnsi(_vfs.Data.filedata[fileIndex]); - Assert.That(filedata, Is.EqualTo(contents)); - } } }