Skip to content

Commit

Permalink
Fix unregister order of inheritance chains
Browse files Browse the repository at this point in the history
  • Loading branch information
konczg authored and migueldeicaza committed Feb 12, 2025
1 parent a532505 commit 35f7f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftGodotTestability/GodotTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ open class GodotTestCase: EmbeddedTestCase<GodotTestHost> {
override open class func tearDown() {
if GodotRuntime.isRunning {
// unregister any types that were registered for the tests
for subclass in godotSubclasses {
for subclass in godotSubclasses.reversed() {
unregister(type: subclass)
}
}
Expand Down

0 comments on commit 35f7f49

Please sign in to comment.