summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2020-08-02 09:59:40 +0200
committerJens Georg <mail@jensge.org>2020-08-02 09:59:55 +0200
commitdd5afe1e50afd63923e507f163f9f4f4ee81d98f (patch)
treefc537f0173a69ba9c0bfe5da3bc1be05a91d3724 /tests
parent4d00ee3e6e86cca5780f12a442b6c15654e485ad (diff)
downloadrygel-dd5afe1e50afd63923e507f163f9f4f4ee81d98f.tar.gz
test: Fix typo
Diffstat (limited to 'tests')
-rw-r--r--tests/rygel-meta-config-test.vala10
-rw-r--r--tests/time-seek/rygel-http-time-seek-test.vala2
2 files changed, 5 insertions, 7 deletions
diff --git a/tests/rygel-meta-config-test.vala b/tests/rygel-meta-config-test.vala
index ac9cc216..b825a17d 100644
--- a/tests/rygel-meta-config-test.vala
+++ b/tests/rygel-meta-config-test.vala
@@ -1,10 +1,8 @@
class TestConfig : Rygel.BaseConfiguration {
public HashTable<string, bool> enable = new HashTable<string, bool> (str_hash, str_equal);
- public void toggl_enable (string module) {
- print("%s ->", enable[module].to_string ());
+ public void toggle_enable (string module) {
enable[module] = !enable[module];
- print("%s\n", enable[module].to_string ());
this.section_changed (module, Rygel.SectionEntry.ENABLED);
}
@@ -65,7 +63,7 @@ test_meta_config_overrides () {
}
});
- second_config.toggl_enable (SECTION_B);
+ second_config.toggle_enable (SECTION_B);
instance.disconnect (id);
// Check that changing a value on a lower priority will not
@@ -73,7 +71,7 @@ test_meta_config_overrides () {
id = instance.section_changed.connect ((section, entry) => {
assert_not_reached ();
});
- second_config.toggl_enable (SECTION_A);
+ second_config.toggle_enable (SECTION_A);
instance.disconnect (id);
// Check that changing a value on a higher priority will be
@@ -87,7 +85,7 @@ test_meta_config_overrides () {
assert_not_reached ();
}
});
- first_config.toggl_enable (SECTION_A);
+ first_config.toggle_enable (SECTION_A);
instance.disconnect (id);
Rygel.MetaConfig.cleanup ();
diff --git a/tests/time-seek/rygel-http-time-seek-test.vala b/tests/time-seek/rygel-http-time-seek-test.vala
index 1b51840a..1ae70504 100644
--- a/tests/time-seek/rygel-http-time-seek-test.vala
+++ b/tests/time-seek/rygel-http-time-seek-test.vala
@@ -84,4 +84,4 @@ int main(string[] args) {
Test.add_func ("/server/time-seek/request", test_time_seek_malformed_header);
return Test.run ();
-} \ No newline at end of file
+}