Skip to content

Commit

Permalink
tests: delete connector at end of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
equalsraf committed Jul 9, 2023
1 parent 23b9f68 commit afc8ddf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/tst_neovimconnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ private slots:
QCOMPARE(spawned->canReconnect(), true);

spawned->reconnect();

spawned->deleteLater();
}

void isReady() {
Expand All @@ -34,6 +36,8 @@ private slots:

QVERIFY(SPYWAIT(onReady));
QVERIFY(c->isReady());

c->deleteLater();
}

void encodeDecode() {
Expand All @@ -51,6 +55,7 @@ private slots:
bytes = c->encode(s);
QCOMPARE(c->decode(bytes), s);

c->deleteLater();
}

void connectToNeovimTCP() {
Expand Down

0 comments on commit afc8ddf

Please sign in to comment.