Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests after upstream change to Node::to_string() #1486

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

dsnopek
Copy link
Collaborator

@dsnopek dsnopek commented Jun 12, 2024

Our tests are failing after Godot PR godotengine/godot#92827 was merged

This PR fixes the tests!

@dsnopek dsnopek added the bug This has been identified as a bug label Jun 12, 2024
@dsnopek dsnopek added this to the 4.x milestone Jun 12, 2024
@dsnopek dsnopek requested a review from a team as a code owner June 12, 2024 14:24
Copy link
Contributor

@mihe mihe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dsnopek dsnopek merged commit c5986e6 into godotengine:master Jun 12, 2024
12 checks passed
@@ -14,7 +14,7 @@ func _ready():
assert_equal(custom_signal_emitted, ["Button", 42])

# To string.
assert_equal(example.to_string(),'Example:[ GDExtension::Example <--> Instance ID:%s ]' % example.get_instance_id())
assert_equal(example.to_string(),'[ GDExtension::Example <--> Instance ID:%s ]' % example.get_instance_id())
# It appears there's a bug with instance ids :-(
#assert_equal($Example/ExampleMin.to_string(), 'ExampleMin:[Wrapped:%s]' % $Example/ExampleMin.get_instance_id())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to also change it here for the future.

Suggested change
#assert_equal($Example/ExampleMin.to_string(), 'ExampleMin:[Wrapped:%s]' % $Example/ExampleMin.get_instance_id())
#assert_equal($Example/ExampleMin.to_string(), '[Wrapped:%s]' % $Example/ExampleMin.get_instance_id())

@AThousandShips AThousandShips modified the milestones: 4.x, 4.3 Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This has been identified as a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants