Files
swift-nio-http2/Tests/NIOHTTP2Tests/SimpleClientServerTests+XCTest.swift
T
Cory Benfield 38feec96bc Soften errors when seeing inactive before active (#376)
Motivation:

When we started checking active/inactive ordering, we added code that
rejected some channel pipeline state transitions. That code was too
strict: it is absolutely possible to see channelInactive before
channelActive in well-functioning programs.

We'll still call this an error, but we don't need to crash in debug mode
when we see it.

Modifications:

- Made channelInactive before channelActive tolerated.

Result:

More reliable code
2023-03-02 13:34:42 +00:00

49 lines
2.7 KiB
Swift

//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftNIO open source project
//
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
//
// SimpleClientServerTests+XCTest.swift
//
import XCTest
///
/// NOTE: This file was generated by generate_linux_tests.rb
///
/// Do NOT edit this file directly as it will be regenerated automatically when needed.
///
extension SimpleClientServerTests {
@available(*, deprecated, message: "not actually deprecated. Just deprecated to allow deprecated tests (which test deprecated functionality) without warnings")
static var allTests : [(String, (SimpleClientServerTests) -> () throws -> Void)] {
return [
("testSendingDataFrameWithLargeFile", testSendingDataFrameWithLargeFile),
("testAutomaticFlowControl", testAutomaticFlowControl),
("testStreamMultiplexerAcknowledgesSettingsBasedFlowControlChanges", testStreamMultiplexerAcknowledgesSettingsBasedFlowControlChanges),
("testNoStreamWindowUpdateOnEndStreamFrameFromServer", testNoStreamWindowUpdateOnEndStreamFrameFromServer),
("testNoStreamWindowUpdateOnEndStreamFrameFromClient", testNoStreamWindowUpdateOnEndStreamFrameFromClient),
("testStreamCreationOrder", testStreamCreationOrder),
("testHandlingChannelInactiveDuringActive", testHandlingChannelInactiveDuringActive),
("testWritingFromChannelActiveIsntReordered", testWritingFromChannelActiveIsntReordered),
("testChannelActiveAfterAddingToActivePipelineDoesntError", testChannelActiveAfterAddingToActivePipelineDoesntError),
("testChannelInactiveThenChannelActiveErrorsButDoesntTrap", testChannelInactiveThenChannelActiveErrorsButDoesntTrap),
("testImpossibleStateTransitionsThrowErrors", testImpossibleStateTransitionsThrowErrors),
("testDynamicHeaderFieldsArentEmittedWithZeroTableSize", testDynamicHeaderFieldsArentEmittedWithZeroTableSize),
("testDynamicHeaderFieldsArentToleratedWithZeroTableSize", testDynamicHeaderFieldsArentToleratedWithZeroTableSize),
("testSettingTableSizeToZeroAfterStartEvictsHeaders", testSettingTableSizeToZeroAfterStartEvictsHeaders),
("testSettingTableSizeToZeroEvictsHeadersAndRefusesToDecodeThem", testSettingTableSizeToZeroEvictsHeadersAndRefusesToDecodeThem),
]
}
}