Skip to content

Commit

Permalink
Fix user profile test
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Oct 22, 2023
1 parent 256fd04 commit 64230a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/user_profile_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ void main() {

expect(result, equals(false));

// Add a profile with a name that already exists
// Add a profile with a new name
result = await UserProfileDBManager().addProfile(
UserProfile(
name: "Test Profile",
name: "Another Test Profile",
)
);

Expand All @@ -77,14 +77,14 @@ void main() {
// Check that the number of protocols available is still the same
var profiles = await UserProfileDBManager().getAllProfiles();

expect(profiles.length, equals(1));
expect(profiles.length, equals(2));
});

test("Profile Name Check", () async {
bool result = await UserProfileDBManager().profileNameExists("doesnotexist");
expect(result, equals(false));

result = await UserProfileDBManager().profileNameExists("Test Profile");
result = await UserProfileDBManager().profileNameExists("Test Server");
expect(result, equals(true));
});

Expand All @@ -100,7 +100,7 @@ void main() {
expect(p.name, equals(testServerName));
expect(p.server, equals(testServerAddress));

expect(p.toString(), equals("<${p.key}> Test Profile : http://localhost:8000"));
expect(p.toString(), equals("<${p.key}> Test Server : http://localhost:8000/"));

// Test that we can update the profile
p.name = "different name";
Expand Down

0 comments on commit 64230a6

Please sign in to comment.