github.com/myafeier/fabric@v1.0.1-0.20170722181825-3a4b1f2bce86/orderer/common/server/server_test.go (about) 1 /* 2 Copyright IBM Corp. 2017 All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package server 8 9 import ( 10 "testing" 11 ) 12 13 func TestBroadcastNoPanic(t *testing.T) { 14 // Defer recovers from the panic 15 _ = (&server{}).Broadcast(nil) 16 } 17 18 func TestDeliverNoPanic(t *testing.T) { 19 // Defer recovers from the panic 20 _ = (&server{}).Deliver(nil) 21 }