Fix integers in tests (fixup #22700)

This commit is contained in:
Manish Goregaokar 2015-02-24 13:49:01 +05:30
parent 2d74b53a03
commit b182cd7245
3 changed files with 4 additions and 4 deletions

View file

@ -473,7 +473,7 @@ fn both_ready() {
#[test]
fn stress() {
static AMT: u32 = 10000;
static AMT: i32 = 10000;
let (tx1, rx1) = channel::<i32>();
let (tx2, rx2) = channel::<i32>();
let (tx3, rx3) = channel::<()>();

View file

@ -425,8 +425,8 @@ fn static_smoke() {
#[test]
fn frob() {
static R: StaticRwLock = RW_LOCK_INIT;
static N: u32 = 10;
static M: u32 = 1000;
static N: usize = 10;
static M: usize = 1000;
let (tx, rx) = channel::<()>();
for _ in 0..N {

View file

@ -142,7 +142,7 @@ mod test {
use super::*;
use sync::mpsc::channel;
const TEST_TASKS: u32 = 4;
const TEST_TASKS: usize = 4;
#[test]
fn test_works() {