Skip to content

Commit

Permalink
longer bb stats test
Browse files Browse the repository at this point in the history
  • Loading branch information
olofkallander committed Oct 26, 2023
1 parent 86f60f8 commit 51e8078
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/BarbellTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ TEST_F(BarbellTest, barbellStats)

ASSERT_TRUE(group.connectAll(utils::Time::sec * _clientsConnectionTimeout));

make5secCallWithDefaultAudioProfile(group);
makeShortCallWithDefaultAudioProfile(group, utils::Time::sec * 10);

// Let's check both form of getting barbell stats:
// - specifc conference: /stats/barbell/<conference ID>
Expand Down Expand Up @@ -850,7 +850,7 @@ TEST_F(BarbellTest, barbellStats)
size_t freqId = 0;
for (auto id : {0, 1})
{
const auto data = analyzeRecording<SfuClient<Channel>>(group.clients[id].get(), 5, true);
const auto data = analyzeRecording<SfuClient<Channel>>(group.clients[id].get(), 10, true);
EXPECT_EQ(data.dominantFrequencies.size(), 2);
if (data.dominantFrequencies.size() >= 2)
{
Expand All @@ -876,7 +876,7 @@ TEST_F(BarbellTest, barbellStats)
{
const double fps = (double)utils::Time::sec / (double)videoStats.averageFrameRateDelta;
EXPECT_NEAR(fps, 30.0, 1.0);
EXPECT_NEAR(videoStats.numDecodedFrames, 150, 7);
EXPECT_NEAR(videoStats.numDecodedFrames, 300, 15);
}
});
}

0 comments on commit 51e8078

Please sign in to comment.