Merge pull request #232 from iamgweej/feature/tests-bugfix

Minor change: reorder destroy() and deinit()
This commit is contained in:
Sam Tebbs 2020-08-31 09:54:01 +01:00 committed by GitHub
commit ddfc983bdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -591,8 +591,8 @@ test "mount" {
// The fs that is to be mounted // The fs that is to be mounted
var testfs2 = try testInitFs(allocator); var testfs2 = try testInitFs(allocator);
defer testfs2.deinit();
defer allocator.destroy(testfs2); defer allocator.destroy(testfs2);
defer testfs2.deinit();
testfs2.instance = 2; testfs2.instance = 2;
// Create the dir to mount to // Create the dir to mount to