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 SyncConfig tests that would break on Windows #1518

Merged
merged 2 commits into from
Sep 14, 2023
Merged

Conversation

cmelchior
Copy link
Contributor

Some tests in SyncConfigTests assumed some things about path separators that it shouldn't

Copy link
Contributor

@rorbech rorbech left a comment

Choose a reason for hiding this comment

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

LGTM. Just some minor nit picks. There is also an ignored deleteRealm() test in SyncRealmTests.kt that we might want to fix in the same go. Just for consistency.

@@ -29,6 +29,7 @@ import io.realm.kotlin.entities.sync.flx.FlexChildObject
import io.realm.kotlin.entities.sync.flx.FlexEmbeddedObject
import io.realm.kotlin.entities.sync.flx.FlexParentObject
import io.realm.kotlin.ext.query
import io.realm.kotlin.internal.platform.PATH_SEPARATOR
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm. Not for this PR, but unfortunate #naming ... File.pathSeparator is usually for separating multiple path entries and not the directory separator 🙃

Add a new pathOf method
@cmelchior cmelchior merged commit 1e6ffa1 into main Sep 14, 2023
1 check passed
@cmelchior cmelchior deleted the cm/fix-windows-path branch September 14, 2023 16:39
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants