Skip to content

Instantly share code, notes, and snippets.

View jnicklas's full-sized avatar

Jonas Nicklas jnicklas

View GitHub Profile
@jnicklas
jnicklas / gist:8708153
Created January 30, 2014 13:20
Scary celluloid test failures
1) Celluloid behaves like a Celluloid Actor using Threads exclusive knows when it's in exclusive mode
Failure/Error: Unable to find matching line from backtrace
Java::JavaUtil::ConcurrentModificationException:
Shared Example Group: "a Celluloid Actor" called from ./spec/celluloid/actor_spec.rb:4
# java.util.WeakHashMap$HashIterator.nextEntry(WeakHashMap.java:762)
# java.util.WeakHashMap$KeyIterator.next(WeakHashMap.java:795)
# org.jruby.RubyThreadGroup.list(RubyThreadGroup.java:149)
# org.jruby.RubyThreadGroup$INVOKER$i$0$0$list.call(RubyThreadGroup$INVOKER$i$0$0$list.gen)
# org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:280)
# org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:134)
### Keybase proof
I hereby claim:
* I am jnicklas on github.
* I am jnicklas (https://keybase.io/jnicklas) on keybase.
* I have a public key whose fingerprint is 62D7 E86E 9AF3 AC42 94F6 E77D ED52 DD4F 1ACF 9759
To claim this, I am signing this object:
~/Projects/rust_stuff$ rustdoc snappy.rs --test
running 1 test
test max_compressed_length_0 ... FAILED
failures:
---- max_compressed_length_0 stdout ----
<anon>:2:1: 2:19 warning: this inner attribute syntax is deprecated. The new syntax is `#![foo]`, with a bang and no semicolon.
<anon>:2 #[deny(warnings)];
function sleep(time) {
return new Promise(function(resolve) { setTimeout(resolve, time) })
}
function repeat(times, cb) {
var resolved = new Promise(function(resolve) { resolve() });
if(times === 0) {
return resolved;
} else {
<!DOCTYPE html>
<html>
<head>
<script src="bower_components/platform/platform.js"></script>
<link rel="import" href="bower_components/polymer/polymer.html">
</head>
<body>
<polymer-element name="hello-world" attributes="step" noscript>
<template>
<h1>Hello {{name}}</h1>
~/Projects/partners(master)$ cargo test
Fresh toml v0.1.0 (file:/Users/jonasnicklas/Projects/partners)
Compiling partners v0.1.0 (file:/Users/jonasnicklas/Projects/partners)
src/partners.rs:8:3: 11:4 warning: code is never used: `Person`, #[warn(dead_code)] on by default
src/partners.rs:8 struct Person {
src/partners.rs:9 name: String,
src/partners.rs:10 nick: String
src/partners.rs:11 }
src/partners.rs:9:5: 9:17 warning: code is never used: `name`, #[warn(dead_code)] on by default
src/partners.rs:9 name: String,
~/Projects/partners(master)$ cargo build
Fresh toml v0.1.0 (file:/Users/jonasnicklas/Projects/partners)
Compiling partners v0.1.0 (file:/Users/jonasnicklas/Projects/partners)
src/partners.rs:40:91: 40:102 error: mismatched types: expected `&collections::string::String` but found `collections::string::String` (expected &-ptr but found struct collections::string::String)
src/partners.rs:40 let name = value.lookup("name").and_then(|v| v.get_str().clone()).unwrap_or_else(|| "".to_str());
^~~~~~~~~~~
src/partners.rs:41:42: 41:46 error: mismatched types: expected `collections::string::String` but found `&collections::string::String` (expected struct collections::string::String but found &-ptr)
src/partners.rs:41 Person { nick: nick.clone(), name: name }
^~~~
error: aborting due to 2 previous errors