Make test less fragile

This commit is contained in:
Itamar Turner-Trauring 2023-11-15 12:51:32 -05:00
parent 5889b80332
commit 3d753fef93

View File

@ -64,7 +64,7 @@ from twisted.internet.task import deferLater
from twisted.internet import reactor
from ..util.eliotutil import (
eliot_json_encoder,
BytesEliotJSONEncoder,
log_call_deferred,
_parse_destination_description,
_EliotLogging,
@ -188,8 +188,8 @@ class ParseDestinationDescriptionTests(SyncTestCase):
"""
reactor = object()
self.assertThat(
_parse_destination_description("file:-")(reactor),
Equals(FileDestination(stdout, encoder=eliot_json_encoder)),
_parse_destination_description("file:-")(reactor).file,
Equals(stdout),
)