Skip to content

Commit

Permalink
Switch to removing the SRV record to test the serviceRemoved() signal (
Browse files Browse the repository at this point in the history
…fixes #38).
  • Loading branch information
nathan-osman committed Jan 16, 2022
1 parent 8ed0a8b commit 0ca8011
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/TestBrowser.cpp
Expand Up @@ -127,13 +127,14 @@ void TestBrowser::testBrowser()
QCOMPARE(serviceAddedSpy.count(), 1);
QCOMPARE(serviceUpdatedSpy.count(), 1);

// Remove the PTR record
// Remove the SRV record
{
QMdnsEngine::Record record;
record.setName(Type);
record.setType(QMdnsEngine::PTR);
record.setName(Fqdn);
record.setType(QMdnsEngine::SRV);
record.setTarget(Target);
record.setPort(Port);
record.setTtl(0);
record.setTarget(Fqdn);
QMdnsEngine::Message message;
message.setResponse(true);
message.addRecord(record);
Expand Down

0 comments on commit 0ca8011

Please sign in to comment.