Skip to content

Commit

Permalink
Setup platform to remove libdnf::critical messages with unit tests
Browse files Browse the repository at this point in the history
libdnf-CRITICAL **: 10:07:59.018: Detection of Platform Module failed: No valid Platform ID detected
  • Loading branch information
j-mracek authored and kontura committed Mar 11, 2021
1 parent cbacc22 commit dd72b0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/libdnf/module/ContextTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ void ContextTest::testLoadModules()
dnf_repo_check(repo, G_MAXUINT, state, &error);
g_object_unref(state);

// Setup platform to prevent logger critical message
dnf_context_set_platform_module(context, "platform:26");

state = dnf_context_get_state(context);
dnf_context_setup_sack(context, state, &error);
g_assert_no_error(error);
Expand Down

0 comments on commit dd72b0a

Please sign in to comment.