Code Monkey home page Code Monkey logo

Comments (2)

jongillham avatar jongillham commented on July 24, 2024

I can't recreate this. I just updated to the latest SDK (https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_darwin_amd64-1.9.23.zip) to check and goapp test -v ./... works. (I had to delete the contents of the pkg directory before the tests would run as I had been using 1.9.21 previously.)

The reason for doing c.Request().(*http.Request)) is to get a 'known' request as it already has a context associated with it. What version of App Engine SDK are you using?

from nds.

johngb avatar johngb commented on July 24, 2024

@jongillham I am using version 1.9.23, and have been for a while. But your suggestion of clearing the pkg directory got things working, and the tests are now passing, so I'll close this issue.

One unrelated thought, is that the tests take a long time to run, mostly because the python devappserver is quite slow in starting up. If you don't rely on previous states for your tests and load the data for each test before the test, you can use a single context for all tests. I had a case where my tests were taking about 5 minutes to run, and by doing this got it down to about 9 seconds.

from nds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.